@extends('home.m.m2.public.public')

@section('content')
    <div class="sidebar">
        <div class="sb_box">
            <div class="active" id="shownews">
                <h1 class="title">
                    {{ $info['name'] }}
                    <p class="hits">{{ $info['time'] }}&nbsp;&nbsp;点击次数：{{ $info['page_view'] }}</p>
                </h1>
                <div class="editor">
                    <div>{!! $info['describe'] !!}</div>
                    <div class="clear"></div>
                </div>
                <div class="met_page">
                    <ul class='preul'>
                        @if(!empty($prev))
                            <li class='preinfo'>
                                <a href='{{ route('info',['new',$prev['id']]) }}'>
                                    <p class='pret'>上一条</p>
                                    <p class='pres'>{{ $prev['name'] }}</p>
                                </a>
                            </li>
                        @endif
                        @if(!empty($next))
                            <li class='nextinfo'>
                                <a href='{{ route('info',['new',$next['id']]) }}'>
                                    <p class='pret'>下一条</p>
                                    <p class='pres'>{{ $next['name'] }}</p>
                                </a>
                            </li>
                        @endif
                    </ul>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
@endsection